package action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

import vue.FenetreConnexion;

public class ActionDeconnecter extends AbstractAction {

	private JFrame frame;
	
	public ActionDeconnecter(String texte, JFrame f){
		super(texte);
		this.frame = f;
	}

	public void actionPerformed(ActionEvent e) {
		ActionDeconnection deco = new ActionDeconnection();
		deco.doDeconnection();
		frame.dispose();
		FenetreConnexion frameLogin = new FenetreConnexion();
	}

}
